<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
| 订单管理
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
| @author renjianhong
| @date 2021-7-28 16:04
*/

//订单列表
Route::get('order/list', 'OrderController@list');//订单列表
Route::get('order/ajaxList', 'OrderController@ajaxList');//ajax获取列表
Route::any('order/detail', 'OrderController@detail');//订单详情
Route::post('order/cancel', 'OrderController@cancel');//取消订单
Route::post('order/send', 'OrderController@send');//订单发货
Route::post('order/recycle', 'OrderController@recycle');//移入回收站
Route::post('order/delete', 'OrderController@delete');//删除
Route::post('order/batchDelete', 'OrderController@batchDelete');//批量删除

Route::post('order/refund', 'RefundController@refundOrder');//取消订单--审核退款

//售后订单
Route::get('order_refund/list', 'OrderRefundController@list');//售后订单列表
Route::get('order_refund/ajaxList', 'OrderRefundController@ajaxList');//ajax获取列表
Route::any('order_refund/refundHandle', 'OrderRefundController@refundHandle');//售后订单处理
Route::any('order_refund/delete', 'OrderRefundController@delete');//删除售后订单
Route::any('order_refund/detail', 'OrderRefundController@detail');//售后订单详情

//批量发货
Route::any('order/batchSend', 'OrderController@batchSend');//批量发货

//订单消息提醒
Route::get('order_message/list', 'OrderMessageController@list');//订单消息提醒列表
Route::get('order_message/ajaxList', 'OrderMessageController@ajaxList');//ajax获取列表
Route::post('order_message/delete', 'OrderMessageController@delete');//删除消息提醒
Route::post('order_message/batchDelete', 'OrderMessageController@batchDelete');//批量删除
Route::post('order_message/soundAll', 'OrderMessageController@soundAll');//标为已提醒

//订单消息提醒
Route::get('order_comment/list', 'OrderCommentController@list');//订单消息提醒列表
Route::get('order_comment/ajaxList', 'OrderCommentController@ajaxList');//ajax获取列表
Route::post('order_comment/delete', 'OrderCommentController@delete');//删除消息提醒
Route::post('order_comment/batchDelete', 'OrderCommentController@batchDelete');//批量删除
Route::any('order_comment/reply', 'OrderCommentController@reply');//回复评价
Route::post('order_comment/is_hide', 'OrderCommentController@is_hide');//是否隐藏